Optimal. Leaf size=16 \[ \sqrt {2} \text {ArcSin}\left (\frac {\sin (x)}{1+\cos (x)}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {2860, 222}
\begin {gather*} \sqrt {2} \text {ArcSin}\left (\frac {\sin (x)}{\cos (x)+1}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 222
Rule 2860
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {\cos (x)} \sqrt {1+\cos (x)}} \, dx &=-\left (\sqrt {2} \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2}} \, dx,x,-\frac {\sin (x)}{1+\cos (x)}\right )\right )\\ &=\sqrt {2} \sin ^{-1}\left (\frac {\sin (x)}{1+\cos (x)}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 30, normalized size = 1.88 \begin {gather*} \frac {2 \text {ArcTan}\left (\frac {\sin \left (\frac {x}{2}\right )}{\sqrt {\cos (x)}}\right ) \cos \left (\frac {x}{2}\right )}{\sqrt {1+\cos (x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(35\) vs.
\(2(14)=28\).
time = 0.15, size = 36, normalized size = 2.25
method | result | size |
default | \(-\frac {\sqrt {\frac {\cos \left (x \right )}{\cos \left (x \right )+1}}\, \sqrt {2 \cos \left (x \right )+2}\, \arcsin \left (\frac {-1+\cos \left (x \right )}{\sin \left (x \right )}\right )}{\sqrt {\cos \left (x \right )}}\) | \(36\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 31 vs.
\(2 (14) = 28\).
time = 0.43, size = 31, normalized size = 1.94 \begin {gather*} \sqrt {2} \arctan \left (\frac {\sqrt {2} \sqrt {\cos \left (x\right ) + 1} \sqrt {\cos \left (x\right )} \sin \left (x\right )}{2 \, {\left (\cos \left (x\right )^{2} + \cos \left (x\right )\right )}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {\cos {\left (x \right )} + 1} \sqrt {\cos {\left (x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.06 \begin {gather*} \int \frac {1}{\sqrt {\cos \left (x\right )}\,\sqrt {\cos \left (x\right )+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________